<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
<h:head>
    <title>Test pages</title>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
    <link rel="stylesheet" href="/faces/resources/css/style.css" type="text/css"/>
    <f:view locale="#{userBean.locale}"/>


</h:head>
<h:body>

    <div class="wrapper">
        <div class="header">
            <div id="right">
                <h:form>
                    <h:commandButton value="RUS" action="#{userBean.setLocaleRu}"/>
                    <h:commandButton value=" EN" action="#{userBean.setLocaleEn}"/>
                </h:form>
            </div>
            <div class="text">Шапка</div>

            <div class="pogoda">
                Здесь будет погода
            </div>
            <h:form>
                <h:outputText value="Логин : #{userBean.login}"/> <br/>
                <h:outputText value="Ваш уровень доступа : #{userBean.accessLevel}"/> <br/>
                <h:commandButton value="Выйти" action="#{userBean.close}"/>
            </h:form>
            <br/><br/><br/><br/>
            <ul class="css-menu-3">
                <li><h:link value="Главная" outcome="/index"/></li>
                <li><h:link value="Объявление" outcome="/Advertisement/avtobaraholka"/></li>
                <li><h:link value="Мой профиль" outcome="/MyAccount/profile"/></li>
                <li><h:link value="all_user(Admin)" outcome="/Admin/all_users"/></li>
                <li><h:link value="view_ads(Admin)" outcome="/Admin/view_ads"/></li>
                <li><h:link value="Регистрация" outcome="/Login/registration"/></li>
                <li><h:link value="Вход" outcome="/Login/authorization"/></li>
                <li><h:link value="Test_pages" outcome="/test_pages"/></li>
                <li><h:link value="Погода" outcome="/weather"/></li>
            </ul>
        </div>
        <div class="middle">

            <div class="container">


                <ui:insert name="body">

                </ui:insert>
            </div>
            <!-- .container-->


        </div>
        <!-- .middle-->

    </div>
    <!-- .wrapper -->

    <div class="footer">

        <div class="text"> Copyright Vanches</div>

    </div>
    <!-- .footer -->

</h:body>


</html>
